Refund a Klarna payment
For general information about creating payment requests, see createPaymentRequest.
For specific information about requirements for Klarna payments, see Klarna Payments.
Refunds
To process a refund, create a refund request with the following parameters:
Parameter |
Description |
Type |
|||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
amount | The amount to refund, including taxes. | ||||||||||||||||||||||||||||||||||||||||||||||||||
orderLine | Leave blank for goodwill refunds. For all other refunds, the following values are available/required.
|
||||||||||||||||||||||||||||||||||||||||||||||||||
reconciliation_identifier |
This is the sales reconciliation identifier, used in the reconciliation CSV files you can download from the Merchant Interface, or by using the getCustomReport method. For more information, see getCustomReport. |
String{0,100} |
Return with refund fee specified example:
transaction_id 13 amount 4.60 orderLines[0][goodsType] physical orderLines[0][description] test orderLines[0][quantity] 1 orderLines[0][taxPercent] 10 orderLines[0][unitPrice] 10 orderLines[0][itemId] 123981231 orderLines[1][goodsType] handling orderLines[1][description] cost of return orderLines[1][quantity] 1 orderLines[1][itemId] 901209381 orderLines[1][unitPrice] 5.12 orderLines[1][taxPercent] 25
This will give you a refund of 4.60, where:
- The first order line is the item that was purchased. 1 piece, costing 10 + 10% tax = 11.00.
- The second order line is the return fee. 5.12 + 25% tax = 6.40
Return fee is deducted from rest of the order lines giving the total amount of the refund is 11.00 - 6.40 = 4.60